<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "etc_send_creator_day_log".
 *
 * @property int $id
 * @property string|null $day 发送日期
 * @property string|null $list_uid 发送日期
 * @property string|null $content 内容
 * @property string|null $title 标题
 * @property int|null $job_id 任务序号从1开始
 * @property int|null $group_id 批次序号从1开始
 * @property int|null $status 0待发送，1已创建任务，-1创建失败
 * @property int|null $end_time 结束时间
 * @property int|null $rule_name 使用的规则
 */
class EtcSendCreatorDayLog extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'etc_send_creator_day_log';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['content', 'title'], 'string'],
            [['job_id', 'group_id','status'], 'integer'],
            [['day','end_time'], 'string', 'max' => 20],
            [['list_uid'], 'string', 'max' => 100],
            [['rule_name'], 'string', 'max' => 300],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'day' => Yii::t('app', '发送日期'),
            'list_uid' => Yii::t('app', '发送日期'),
            'content' => Yii::t('app', '内容'),
            'title' => Yii::t('app', '标题'),
            'job_id' => Yii::t('app', '任务序号从1开始'),
            'group_id' => Yii::t('app', '批次序号从1开始'),
        ];
    }
}
